{% set clazz = "cashier" %}
{% set title = "收银台" %}
{% extends './modules/common/templates/main.html' %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section class="has-footer">
    <div class="list compact">
      <div class="item-divider"><span class="text-black">请选择支付方式</span></div>
      <label class="item" ui-mode="30px">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-6af823d5-8d74-4209-ae67-e89fbfc121f9.png" ui-mode="80px" />  
        </div>
        <span class="text">
          在线收款
          <div class="brief">需要用户使用千丁APP扫码支付</div>
        </span>
        <input type="radio" ui-mode="checkbox" name="paytype" value="online" checked="checked" />
      </label>
      <label class="item" ui-mode="30px">
        <div class="avatar">
          <img src="http://7xjyap.com2.z0.glb.qiniucdn.com/image-054eb785-f1be-4f89-b1dd-ddaf973873d3.png" ui-mode="80px" />  
        </div>
        <span class="text">
          现金收款
          <div class="brief">需要及时在资金中清账</div>
        </span>
        <input type="radio" ui-mode="checkbox" name="paytype" value="cash" checked="checked" />
      </label>
    </div>
  </section>
  <footer class="bar bar-footer bar-fixed bar-flat">
    <div class="flexbox compact">
      <div class="item">
        <div class="hspace">应付金额：<span class="text-red">{{ money|currency }}</span></div>
      </div>
      <div class="item">
        <button class="button warning square submit" data-code="{{ entity.orderBase.orderCode }}">去清账</button>
      </div>
    </div>
  </footer>
{% endblock %}
{% block script %}
  {% parent %}
  <script src="{{ '/static/js/cashier.js'|version }}"></script>
{% endblock %}